package com.niuwa.p2p.dao.fund;

import com.niuwa.p2p.dao.MyBatisDao;
import com.niuwa.p2p.entity.fund.CustAcctRule;
@MyBatisDao
public interface CustAcctRuleDao {
	
    int deleteByPrimaryKey(Long id);

    int insert(CustAcctRule record);

    int insertSelective(CustAcctRule record);

    CustAcctRule selectByPrimaryKey(Long id);
    
    /**
     * 根据合作机构编号查找客户账户规则信息
     * @param partnerNo
     * @return
     */
    CustAcctRule selectCustRuleByPartnerNo(String partnerNo);

    int updateByPrimaryKeySelective(CustAcctRule record);

    int updateByPrimaryKey(CustAcctRule record);
    
    /**
     *根据机构编号获取机构规则
     */
    CustAcctRule selectByOpenOrgCode(String openOrgCode);
}